<div class="properties form">

	<div class="row">
		<div class="col-md-12">
			<div class="page-header">
				<h1><?php echo __('Admin Edit Property'); ?></h1>
			</div>
		</div>
	</div>



	<div class="row">
    <?php echo $this->element('admin-menu'); ?>
		<div class="col-md-9">
			<?php echo $this->Form->create('Property', array('role' => 'form','type'=>'file')); ?>
                <div class="row">

				<div class="form-group">
					<?php echo $this->Form->input('id', array('class' => 'form-control', 'placeholder' => 'Id'));?>
				</div>
				<div class="form-group">
					<?php echo $this->Form->input('title', array('class' => 'form-control', 'placeholder' => 'Title'));?>
				</div>
				<div class="form-group">
					<?php //echo $this->Form->input('slug', array('class' => 'form-control', 'placeholder' => 'Slug'));?>
				</div>
				<div class="form-group">
					<?php echo $this->Form->input('user_id', array('label'=>'Broker/Agent','class' => 'form-control', 'placeholder' => 'User Id'));?>
				</div>
				<div class="form-group">
					<?php echo $this->Form->input('address', array('class' => 'form-control', 'placeholder' => 'Address'));?>
				</div>
				<div class="form-group">
					<?php echo $this->Form->input('location', array('class' => 'form-control', 'placeholder' => 'Location'));?>
				</div>
				<div class="form-group">
					<?php echo $this->Form->input('city_id', array('class' => 'form-control', 'placeholder' => 'City Id'));?>
				</div>
				<div class="form-group">
					<?php echo $this->Form->input('description', array('class' => 'form-control', 'placeholder' => 'Description'));?>
				</div>
                </div>
                
                <div class="row">
                                <hr /> 	
                                 	<div class="col-md-4 col-sm-4 submit-image">
                                    	
                                        <?php 
										if(!empty($property['Property']['image1'])){
										$image1	=	'/files/property/thumb/'.$property['Property']['image1'];
										echo $this->Html->image($image1,array('width' => '220px','alt'=>'',"class"=>"image-placeholder"));
										}
										else
										{
											echo '<div class="image-placeholder">Image 1</div>';
										}
										 ?>
                                    	<?php echo $this->Form->input('image1', array('type' => 'file')); ?>
                                  </div>
                                 	<div class="col-md-4 col-sm-4 submit-image">
                                        <?php 
										if(!empty($property['Property']['image2'])){
										$image2	=	'/files/property/thumb/'.$property['Property']['image2'];
										echo $this->Html->image($image2,array('width' => '220px','alt'=>'',"class"=>"image-placeholder"));
										}
										else
										{
											echo '<div class="image-placeholder">Image 2</div>';
										}
										 ?>
                                         <?php echo $this->Form->input('image2', array('type' => 'file')); ?>
                                  </div>
                                 	<div class="col-md-4 col-sm-4 submit-image">
                                        <?php 
										if(!empty($property['Property']['image3'])){
										$image3	=	'/files/property/thumb/'.$property['Property']['image3'];
										echo $this->Html->image($image3,array('width' => '220px','alt'=>'',"class"=>"image-placeholder"));
										}
										else
										{
											echo '<div class="image-placeholder">Image 3</div>';
										}
										 ?>
                                         <?php echo $this->Form->input('image3', array('type' => 'file')); ?>
                                  </div>
                              </div>






                <div class="row">
                                <hr /> 	
				<div class="form-group">
					<?php echo $this->Form->input('price', array('label'=>'Price ('.__($websiteSettings['currency_symbol']).')' ,'class' => 'form-control', 'placeholder' => 'Price ('.__($websiteSettings['currency_symbol']).')'));?>
				</div>
				<div class="form-group">
					<?php echo $this->Form->input('area', array('class' => 'form-control', 'placeholder' => 'area'));?>
				</div>
				<div class="form-group">
					<?php echo $this->Form->input('property_type_id', array('class' => 'form-control', 'placeholder' => 'Property Type Id'));?>
				</div>
				<div class="form-group">
					<?php echo $this->Form->input('contract_type', array('empty'=>'Contract Type','options'=>$contract_type,'class' => 'form-control selectpicker', 'placeholder' => 'Contract Type'));?>
				</div>
				<div class="form-group">
					<?php echo $this->Form->input('beds', array('empty'=>'Beds','options'=>$dropdown_options,'class' => 'form-control', 'placeholder' => 'Beds'));?>
				</div>
				<div class="form-group">
					<?php echo $this->Form->input('baths', array('empty'=>'Beds','options'=>$dropdown_options,'class' => 'form-control', 'placeholder' => 'Baths'));?>
				</div>
				<div class="form-group">
					<?php echo $this->Form->input('parking', array('empty'=>'Beds','options'=>$dropdown_options,'class' => 'form-control', 'placeholder' => 'Parking'));?>
				</div>
				<div class="form-group">
					<?php //echo $this->Form->input('image1', array('class' => 'form-control', 'placeholder' => 'Image1'));?>
				</div>
				<div class="form-group">
					<?php //echo $this->Form->input('image2', array('class' => 'form-control', 'placeholder' => 'Image2'));?>
				</div>
				<div class="form-group">
					<?php //echo $this->Form->input('image3', array('class' => 'form-control', 'placeholder' => 'Image3'));?>
				</div>
                </div>

                <div class="row">
                                <hr /> 	
				<div class="col-md-3 col-sm-3 col-xs-6">
					<?php echo $this->Form->input('air_conditioning', array('placeholder' => 'Air Conditioning'));?>
				</div>
				<div class="col-md-3 col-sm-3 col-xs-6">
					<?php echo $this->Form->input('heating', array('placeholder' => 'Heating'));?>
				</div>
				<div class="col-md-3 col-sm-3 col-xs-6">
					<?php echo $this->Form->input('balcony', array('placeholder' => 'Balcony'));?>
				</div>
				<div class="col-md-3 col-sm-3 col-xs-6">
					<?php echo $this->Form->input('dishwasher', array('placeholder' => 'Dishwasher'));?>
				</div>
				<div class="col-md-3 col-sm-3 col-xs-6">
					<?php echo $this->Form->input('pool', array('placeholder' => 'Pool'));?>
				</div>
				<div class="col-md-3 col-sm-3 col-xs-6">
					<?php echo $this->Form->input('internet', array('placeholder' => 'Internet'));?>
				</div>
				<div class="col-md-3 col-sm-3 col-xs-6">
					<?php echo $this->Form->input('terrace', array('placeholder' => 'Terrace'));?>
				</div>
				<div class="col-md-3 col-sm-3 col-xs-6">
					<?php echo $this->Form->input('microwave', array('placeholder' => 'Microwave'));?>
				</div>
				<div class="col-md-3 col-sm-3 col-xs-6">
					<?php echo $this->Form->input('fridge', array('placeholder' => 'Fridge'));?>
				</div>
				<div class="col-md-3 col-sm-3 col-xs-6">
					<?php echo $this->Form->input('cable_tv', array('placeholder' => 'Cable Tv'));?>
				</div>
				<div class="col-md-3 col-sm-3 col-xs-6">
					<?php echo $this->Form->input('security_camera', array('placeholder' => 'Security Camera'));?>
				</div>
				<div class="col-md-3 col-sm-3 col-xs-6">
					<?php echo $this->Form->input('toaster', array('placeholder' => 'Toaster'));?>
				</div>
				<div class="col-md-3 col-sm-3 col-xs-6">
					<?php echo $this->Form->input('grill', array('placeholder' => 'Grill'));?>
				</div>
				<div class="col-md-3 col-sm-3 col-xs-6">
					<?php echo $this->Form->input('oven', array('placeholder' => 'Oven'));?>
				</div>
				<div class="col-md-3 col-sm-3 col-xs-6">
					<?php echo $this->Form->input('fans', array('placeholder' => 'Fans'));?>
				</div>
				<div class="col-md-3 col-sm-3 col-xs-6">
					<?php echo $this->Form->input('servants', array('placeholder' => 'Servants'));?>
				</div>
				<div class="col-md-3 col-sm-3 col-xs-6">
					<?php echo $this->Form->input('furnished', array('placeholder' => 'Furnished'));?>
				</div>
				<div class="col-md-3 col-sm-3 col-xs-6">
					<?php echo $this->Form->input('cupboards', array('placeholder' => 'Cupboards'));?>
				</div>
                <hr />
				</div>

                <div class="row">
                                <hr /> 	
				<div class="clearfix form-group PropertyPublished col-md-12 col-sm-12 col-xs-12">
					<?php echo $this->Form->input('published_on', array('class' => 'form-control ', 'placeholder' => 'Published On'));?>
				</div>
                </div>

                <div class="row">
                                <hr /> 	
				<div class="form-group">
					<?php echo $this->Form->input('active', array('class' => 'form-control', 'placeholder' => 'Active'));?>
				</div>
                </div>
                
				<div class="form-group">
					<?php echo $this->Form->submit(__('Submit'), array('class' => 'btn btn-primary ')); ?>
				</div>

			<?php echo $this->Form->end() ?>

		</div><!-- end col md 12 -->
	</div><!-- end row -->
</div>
